<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
</head>
<body>
	<div id="box" data-a="我们" data-a-abc="完美完美">自定义属性对象</div>
</body>
<script>
//查
console.log(box.dataset);
console.log(box.dataset.a);
console.log(box.dataset['a']);
console.log(box.dataset.aAbc);
//改
box.dataset['a']="你们";//修改
box.setAttribute("qwe","请问");//增，设置
console.log(box.getAttribute("qwe"));//获取

//删
box.dataset['a']="";
box.removeAttribute('data-a');
delete box.dataset['a'];
</script>
</html>